{% extends "base.html" %}

{% block content %}

{% if good_info %}
<div class="goodShowBox">
    <div>
        <div class="left">
            <img src="{{good_info.good.p_url}}" />
        </div>
        <div class="right">
            <h3>{{good_info.good.name}} <a href="/buy/{{good_info.good.id}}/">购买</a></h3>
            <p><b>售价</b> <b class="price">￥{{good_info.good.price}}</b></p>
            <p><b>库存</b> <b>{{good_info.good.store}}</b></p>
            <p><b>分类</b> <a href="/search/?csrfmiddlewaretoken=5SRjUKnsbRQD9l8RtuhtiC0H6bIPj0j9Ysfilvf3uzBfWCluUhNqS1tHENAOc3CD&search_name={{good_info.good.classify}}">{{good_info.good.classify}}</a></p>
            <p><b>参数</b> {{good_info.good.types}}</p>
            <p><b>介绍</b><p>{{good_info.good.intro}}</p></p>
        </div>
    </div>


    <br>
    <div class="comment">
        <h3>商品评论</h3>
        <table>
        <tr>
            <th width="60px">用户名</th>
            <th width="80px">日期</th>
            <th >评论</th>
        </tr>
        {% for item in orders %}
        <tr>
            <td width="60px">{{item.user}}</td>
            <td width="80px">{{item.created_time}}</td>
            <td>{{item.comment}}</td>
        </tr>
        {% endfor %}
    </table>
    </div>
    <br>
</div>
{% endif %}

{% endblock %}
